import "dotenv/config";
import inquirer from "inquirer";

import { questions } from "./questions/postArticle";
import { postArticle } from "./utils/postArticle";

inquirer.prompt(questions).then(async (answers) => {
  const articleIds: any[] = answers.articles
  await Promise.all(articleIds.map(id => postArticle(id)))
});
